package com.bw.risk.feginClient;

import com.bw.core.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "credit-user-web",path = "tb-user")
public interface UserFeignService {

    @RequestMapping(value = "findUserMessage",method = RequestMethod.GET)
    UserVo findUserMessage(@RequestParam("userId") Long userId);


    @RequestMapping(value = "findByCallBook",method = RequestMethod.GET)
    List<String> findCallBook(@RequestParam("userId") Long userId);


    @RequestMapping(value = "findLinkMan",method = RequestMethod.GET)
    List<String> findLinkMan(@RequestParam("userId") Long userId);


    @RequestMapping(value = "findTaoBao",method = RequestMethod.GET)
    String findTaoBao(@RequestParam("userId") Long userId);


    @RequestMapping(value = "findOperator",method = RequestMethod.GET)
    String findOperator(@RequestParam("userId") Long userId);
}
